<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js的引用</title>
    <!-- 内嵌式引入js -->
    <!-- <script>
        alert('内嵌式引入js')
    </script> -->
    <!-- 外链式引入js -->
    <script src="t.js">
    </script>
</head>

<body>
    <!-- 行内式引入js 标签后添加属性，属性值js语言 -->
    <input type="button" value="提交" onclick="alert('MRY')">
    <a href="javascript:alert('MRY')">a提交</a>
</body>

</html>